How to get point where the browser wraps the text using Javascript